package com.ruoyi.inventory.service;

import com.ruoyi.inventory.domain.InventoryByIdDetail;
import com.ruoyi.inventory.domain.InventoryDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * inventoryService接口
 * 
 * @author ruoyi
 * @date 2019-10-29
 */
public interface IInventoryDetailService 
{
    /**
     * 查询inventory
     * 
     * @param id inventoryID
     * @return inventory
     */
    public InventoryByIdDetail selectInventoryDetailById(Long id);

    /**
     * 查询inventory列表
     * 
     * @param inventoryDetail inventory
     * @return inventory集合
     */
    public List<InventoryDetail> selectInventoryDetailList(InventoryDetail inventoryDetail);

    /**
     * 新增inventory
     * 
     * @param inventoryDetail inventory
     * @return 结果
     */
    public int insertInventoryDetail(InventoryDetail inventoryDetail);

    /**
     * 修改inventory
     * 
     * @param inventoryDetail inventory
     * @return 结果
     */
    public int updateInventoryDetail(InventoryDetail inventoryDetail);

    /**
     * 批量删除inventory
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteInventoryDetailByIds(String ids);

    /**
     * 删除inventory信息
     * 
     * @param id inventoryID
     * @return 结果
     */
    public int deleteInventoryDetailById(Long id);

    /**
     * 查看盘点汇总
     * @param inventory
     * @return
     */
    List<InventoryByIdDetail> selectAllListById(InventoryByIdDetail inventory);

    /**
     * 查询资产本次盘点相符数量
     * @param inventoryId
     * @return
     */
    List<InventoryByIdDetail> selectYesCountByAssetId(@Param("inventoryId") String inventoryId);

    /**
     * 查询资产本次盘点不相符数量
     * @param inventoryId
     * @return
     */
    List<InventoryByIdDetail> selectNoCountByAssetId(@Param("inventoryId") String inventoryId);
}
